Install Eucalyptus ( frontend )
|
Build your private cloud with Eucalyptus. This example is based on the environment below.
(1) frontend [10.0.0.5] - CentOS 5.4 (x86_64) Xen host (2) node1 [10.0.0.20] - CentOS 5.4 (x86_64) Xen host It's required to build Xen host in frontend and node. And also it's necessary to make more than 32 loopback devices on frontend and node, See here. Furthermore, DHCP server is needed on frontend. First, build frontend server here. |
|
[1] | Install some requied packages |
[root@frontend ~]# yum -y install dhcp httpd java ant ant-nodeps httpd-devel curl-devel libvirt-devel apr-devel openssl-devel
|
[2] | Install Eucalyptus. Get latest one if you get it with wget command. |
[root@frontend ~]# wget -O eucalyptus-1.5.2-centos-x86_64.tar.gz "http://open.eucalyptus.com/downloads/105" [root@frontend ~]# tar zxvf eucalyptus-1.5.2-centos-x86_64.tar.gz [root@frontend ~]# cd eucalyptus-1.5.2-centos-x86_64/eucalyptus-1.5.2-rpm-deps-x86_64 [root@frontend eucalyptus-1.5.2-rpm-deps-x86_64]# rpm -Uvh aoetools-21-1.el4.x86_64.rpm euca-axis2c-1.5.0-2.x86_64.rpm euca-rampartc-1.2.0-1.x86_64.rpm vblade-14-1mdv2008.1.x86_64.rpm Preparing... ################################ [100%]  1:euca-axis2c ################################ [25%]  2:aoetools ################################ [50%]  3:euca-rampartc ################################ [75%]  4:vblade ################################ [100%] [root@frontend eucalyptus-1.5.2-rpm-deps-x86_64]# cd ../ [root@frontend eucalyptus-1.5.2-centos-x86_64]# rpm -Uvh eucalyptus-1.5.2-1.x86_64.rpm eucalyptus-cc-1.5.2-1.x86_64.rpm eucalyptus-cloud-1.5.2-1.x86_64.rpm eucalyptus-gl-1.5.2-1.x86_64.rpm Preparing... ################################ [100%]  1:eucalyptus ################################ [25%]  2:eucalyptus-gl ################################ [50%]  3:eucalyptus-cc ################################ [75%]  4:eucalyptus-cloud ################################ [100%] [root@frontend eucalyptus-1.5.2-centos-x86_64]# [root@frontend ~]# rm -rf eucalyptus-1.5.2-centos-x86_64 [root@frontend ~]# usermod -d /opt/eucalyptus eucalyptus [root@frontend ~]# vi /opt/eucalyptus/etc/eucalyptus/eucalyptus.conf # line 132: change VNET_INTERFACE=" peth0 "[root@frontend ~]# /etc/rc.d/init.d/eucalyptus-cloud start Starting Eucalyptus cloud controller: done. [root@frontend ~]# /etc/rc.d/init.d/eucalyptus-cc start Starting Eucalyptus cluster controller: done. [root@frontend ~]# export PATH=$PATH:/opt/eucalyptus/usr/sbin [root@frontend ~]# echo PATH=$PATH:/opt/eucalyptus/usr/sbin >> ~/.bashrc
|